package com.apusic.entity;

import java.io.Serializable;
import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * 
 * @author hanyiting
 * 用户表
 *
 */

public class TUser implements Serializable{

	private static final long serialVersionUID = 7799634084929929777L;
	
	private Integer id;
	private String userId;
	private String organizeId;
	private String districtCode;
	private String userName;
	private String userPassword;
	private String userEmail;
	private String userPhone;
	private String type;
	private String province;
	private String city;
	private String county;
	private String note1;
	private String note2;
	private String note3;
	private String userType;
	private String organizeName;
	private String linkMan;
	private String userStatus;
	private Date registerTime;
	private String memberId;
	private String memberName;
	
	
	public String getMemberName() {
		return memberName;
	}
	public void setMemberName(String memberName) {
		this.memberName = memberName;
	}
	public String getMemberId() {
		return memberId;
	}
	public void setMemberId(String memberId) {
		this.memberId = memberId;
	}
	
	public String getUserStatusDto(){
		if(userStatus.equals("0")){
			return "<font color=\"red\">禁用</font>";
		}else if(userStatus.equals("1")){
			return "<font color=\"green\">激活</font>";
		}
		return "";
	}
	public String getUserTypeDto(){
		if(userType.equals("0")){
			return "试用";
		}else if(userType.equals("1")){
			return "正式";
		}
		return "";
	}
	
	public String getTypeDto(){
		if(type.equals("1")){
			return "一级用户";
		}else if(type.equals("2")){
			return "二级用户";
		}else if(type.equals("3")){
			return "三级用户";
		}
		return "";
	}
	public String getLinkMan() {
		return linkMan;
	}
	public void setLinkMan(String linkMan) {
		this.linkMan = linkMan;
	}
	public String getOrganizeName() {
		return organizeName;
	}
	public void setOrganizeName(String organizeName) {
		this.organizeName = organizeName;
	}
	public String getUserType() {
		return userType;
	}
	public void setUserType(String userType) {
		this.userType = userType;
	}
	public String getNote1() {
		return note1;
	}
	public void setNote1(String note1) {
		this.note1 = note1;
	}
	public String getNote2() {
		return note2;
	}
	public void setNote2(String note2) {
		this.note2 = note2;
	}
	public String getNote3() {
		return note3;
	}
	public void setNote3(String note3) {
		this.note3 = note3;
	}
	public String getProvince() {
		return province;
	}
	public void setProvince(String province) {
		this.province = province;
	}
	public String getCity() {
		return city;
	}
	public void setCity(String city) {
		this.city = city;
	}
	public String getCounty() {
		return county;
	}
	public void setCounty(String county) {
		this.county = county;
	}
	public Integer getId() {
		return id;
	}
	public void setId(Integer id) {
		this.id = id;
	}
	
	
	
	public String getUserId() {
		return userId;
	}
	public void setUserId(String userId) {
		this.userId = userId;
	}
	
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	public String getUserPassword() {
		return userPassword;
	}
	public void setUserPassword(String userPassword) {
		this.userPassword = userPassword;
	}
	public String getUserEmail() {
		return userEmail;
	}
	public void setUserEmail(String userEmail) {
		this.userEmail = userEmail;
	}
	public String getUserPhone() {
		return userPhone;
	}
	public void setUserPhone(String userPhone) {
		this.userPhone = userPhone;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getDistrictCode() {
		return districtCode;
	}
	public void setDistrictCode(String districtCode) {
		this.districtCode = districtCode;
	}
	
	public String getOrganizeId() {
		return organizeId;
	}
	public void setOrganizeId(String organizeId) {
		this.organizeId = organizeId;
	}
	@Override
	public String toString() {
		return "TUser [id=" + id + ", userId=" + userId + ", organizeId="
				+ organizeId + ", districtCode=" + districtCode + ", userName="
				+ userName + ", userPassword=" + userPassword + ", userEmail="
				+ userEmail + ", userPhone=" + userPhone + ", type=" + type
				+ ", province=" + province + ", city=" + city + ", county="
				+ county + ", note1=" + note1 + ", note2=" + note2 + ", note3="
				+ note3 + ", userType=" + userType + ", organizeName="
				+ organizeName + ", linkMan=" + linkMan + "]";
	}
	public String getUserStatus() {
		return userStatus;
	}
	public void setUserStatus(String userStatus) {
		this.userStatus = userStatus;
	}

	public Date getRegisterTime() {
		return registerTime;
	}

	public void setRegisterTime(Date registerTime) {
		this.registerTime = registerTime;
	}
	
	public String getRegisterTimeDto() {
		SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd");  
		String str=sdf.format(registerTime);  
		return str;
	}
	
	
	
	
}
